using System.Configuration;

namespace Microsoft.Practices.Unity.Interception
{
    public class InterceptionMethodConfigurationElementCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new InterceptionMethodConfiguraitonElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((InterceptionMethodConfiguraitonElement)element).Name;
        }
    }
}